#include<stdio.h>
int main()
{
  int c;
  FILE *fp;
  fp=fopen("text","r");
  while((c=getc(fp))!=EOF)
      {
        if((c==' ')||(c=='\t'))
          {
            printf("\n");
          }
        
        else
          {
            printf("%c",c);
          }
      }
 return 0;
}  
        

